package com.xywh.micro_warehousing.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xywh.micro_warehousing.R;
import com.xywh.micro_warehousing.mvp.ui.entity.Tab4;

import java.util.List;

import me.jessyan.armscomponent.commonsdk.core.RouterHub;
import me.jessyan.armscomponent.commonsdk.utils.Utils;


public class Tab4Adapter extends BaseQuickAdapter<Tab4.DataBean, BaseViewHolder> {

    private Context mContext;

    public Tab4Adapter(Context context, @Nullable List<Tab4.DataBean> data) {
        super(R.layout.item_tab4, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, Tab4.DataBean item) {
        //GlideUtil.loadImage(mContext,item.getImg(),helper.getView(R.id.img_head));
        helper.setOnClickListener(R.id.tv_edit, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Utils.navigation(mContext, RouterHub.ACTIVITY_ADDRESS_EDIT);

            }
        });
    }

}
